package com.tcode.consumer.hystrix;

import com.tcode.consumer.client.ExposeClient;
import com.tcode.provider.entity.Info;
import com.tcode.provider.entity.User;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class UserFallbackFactory implements FallbackFactory<ExposeClient> {
    @Override
    public ExposeClient create(Throwable throwable) {

        return new ExposeClient() {


            @Override
            public String login(String uname, String upassword) {
                return null;
            }

            @Override
            public String upload(String filePath1) {
                return null;
            }
        };
    }
}
